#include <bits/stdc++.h>

using namespace std;
int n; 
int main() {
	cin >> n;
	for(int i = 1; i <= n; i ++) {
		cout << "|";
		for(int j = 2; j <= n - 1; j ++) {
			if(i == 1 || i == (n + 1) / 2 || i == n)
				cout << "-";
			else
				cout << "x";
		}
		cout << "|";
		cout << endl;
	}
	return 0;
}

